<%
layout("tabbar.html", {index: 1}){
%>
<div>
    <div class="weui-cells__title">充值记录</div>
    <div class="weui-cells">
        <% for (recharge in recharges) { %>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>${recharge.createTime, dateFormat="yy-MM-dd HH:mm"} : ${recharge.money / 100}元</p>
            </div>
            <div class="weui-cell__ft">
                <%
                switch(recharge.status) {
                  case 'Submit': print('未处理'); break;
                  case 'Success': print('成功'); break;
                  case 'Fail': print('失败'); break;
                }
                %>
            </div>
        </div>
        <% } %>
    </div>
</div>
<% } %>